#pragma once

#include "DialogCommon.h"
#include "afxcmn.h"
#include <vector>

using namespace std;

enum{
	LIST_ITEM_PHOTO,
	LIST_ITEM_CARTOON,
	LIST_ITEM_VIDEO
};

class CLedList
{
public:
	CLedList(CDialogEx *dlg);
	~CLedList(void);

	int createItme(int type);
	void setFocus(int index);
	void setFocus(CDialogCommon *dlg);

	void moveDown();
	void moveUp();
	void remove();
	void insert(CDialogCommon *dlg);

	int getIndex();
	unsigned canShowCount();
	unsigned maxRange();

	void setbeginIndex(unsigned begin);

	int write(class ledImage *led);
protected:
	int createItmePhoto();
private:
	CDialogEx *m_dlg;
	CDialogEx *m_mydlg;
	vector<CDialogCommon*> m_list;
	unsigned m_beginIndex;
};

